package com.platform.modules.mall.location;

import java.text.DecimalFormat;

public class Location {
    /**
    *经度
     */
    Double x;
    /**
     * 纬度
     */
    Double y;
    public Location(Double x, Double y){
        this.x = x;
        this.y = y;
    }
    @Override
    public String toString(){
        DecimalFormat df = new DecimalFormat("0.######");
        return df.format(y)+" "+df.format(x);
    }
}
